<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        $XJ=7.99;
        $PG=6.89;
        $JZ=3.99;
        $sum=($XJ*2+$PG*1+$JZ*3)*0.8
        
        ?>
  <table width="500" border="1">
  <tbody>
    <tr>
      <th width="136" scope="col">商品名称</th>
      <th width="145" scope="col">购买数量</th>
      <th width="197" scope="col">商品价格</th>
    </tr>
    <tr>
      <td>香蕉</td>
      <td>2</td>
      <td>7.99</td>
    </tr>
    <tr>
      <td>苹果</td>
      <td>1</td>
      <td>6.89</td>
    </tr>
    <tr>
      <td>橘子</td>
      <td>3</td>
      <td>3.99</td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
      <td>商品折扣：0.8</td>
    </tr>
    <tr>
      <td height="23" colspan="3"> 打折后购买商品总价格：<?php echo $sum?>
      元</td>
    </tr>
  </tbody>
</table>
    </body>
</html>
